<template>
  <div class="indexwarp">
    <TopBar></TopBar>
    <router-view></router-view>
    <div class="New" @click="updataList">
        <span class="iconfont icon-xingzhuang"></span>
    </div>
  </div>
</template>

<script>
import TopBar from "@/components/home/TopBar";

export default {
  inject:['reload'],
  data(){
    return{
      index:1
    }
  },
  components:{
    TopBar
  },
  methods:{
    updataList(){
      this.reload();
    }
  }
}
</script>

<style scoped>
.indexwarp{
  height: 100%;
}
.New{
  position: fixed;
  bottom: 76px;
  right: 0;
  z-index: 999;
}
.iconfont{
  font-size: 50px;
}
</style>